package com.tanhua.model.vo;

import com.tanhua.model.db.Report;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ReportVo implements Serializable {

    private String conclusion;

    private String cover;

    private List<DimensionsVo> dimensions;

    private List<SimilarYouVo> similarYou = null;

    private Integer id;

    private String avatar;

    public static ReportVo inint(Report report){
        ReportVo vo = new ReportVo();
        vo.setConclusion(report.getConclusion());
        vo.setCover(report.getCover());
        return vo;
    }
}
